package com.example.daydayup.designPatterns.study6;

/**
 * Description: <br/>
 *
 * @author: wells <br/>
 * @since 2024-04-1 16:46
 */
public abstract class Drink {
    public String description="";
    private float price=0f;


    public void setDescription(String description)
    {
        this.description=description;
    }

    public String getDescription()
    {
        return description+"-"+this.getPrice();
    }
    public float getPrice()
    {
        return price;
    }
    public void setPrice(float price)
    {
        this.price=price;
    }
    public abstract float cost();
}
